(function (public) {
  // 是否为移动端
  function isMobile () {
    try {
      var pageWidth =
        document.body.clientWidth ||
        document.documentElement.clientWidth;
        return pageWidth < 1000;
    } catch (e) {
      console.log(e);
      return false;
    }
  }

  public.isMobile = isMobile;

  window.public = public;
})(window.public || {})